﻿var hh5= "#fEffect/ItemEff/3012023/1/9#";//拟人化星星
var hh7= "#fEffect/ItemEff/3994441/8#";//小精灵
var status = -1;

function action(mode, type, selection) {
    if (mode == 1) {
        status++;
    } else {
        if (status == 0) {
            cm.sendOk("#e真的要放弃这次获取以下物品的机会了么?"+hh7+"\r\n#v4031859#   #v2049376#*5#v2614002#*40#v5062024#*200#v2435153#*7#v2616051#*30#v2430453#*20\r\n#v4021016#*9000#v4032733#*4#v1143024##v5062402#*3#v2570002#*2#v3015449##k\r\n");
            cm.dispose();
        }
        status--;
    }
    if (status == 0) {
        cm.sendYesNo("#e#v2436384##g战力礼包#rV#k#bI#k  (价值约13700余额)\r\n"+"打开该礼包,将获取终极奖励#v4031859#,凭借此证明可在管理员-夜处增加一次转职机会!!\r\n#v2049376#*5#v2614002#*40#v5062024#*200#v2435153#*7#v2616051#*30#v2430453#*20\r\n#v4021016#*9000#v4032733#*4#v1143024##v5062402#*3#v2570002#*2#v3015449##k\r\n#r警告#k:一定要保持背包每栏至少留有#g30#k个空位哟,否则东西少了我是不负责的哟~\r\n\r\n是否花费#r5666#k余额打开该礼包？#k");
    } else if (status == 1) {
        if(cm.getHyPay(1)> 5666){
 	cm.sendOk("恭喜你成功打开了战力礼包I,快去背包里查看把!");
        cm.addHyPay(5666);
        cm.gainItem(4031859, 1);
        cm.gainItem(2436384, -1);
        cm.gainItem(2049376, 5);
        cm.gainItem(2614002, 40);
        cm.gainItem(5062024, 200);
        cm.gainItem(2435153, 7);
        cm.gainItem(2616051, 30);
        cm.gainItem(2430453, 20);
        cm.gainItem(4032733, 4);
        cm.gainItem(4021016, 9000);
        cm.gainItem(1143024, 1);
        cm.gainItem(5062402, 3);
        cm.gainItem(2570002, 2);
        cm.gainItem(3015449, 1);
        cm.dispose();
            }
        else {
        cm.sendOk(hh5+"\r\n#e您的#r余额#k不足哟~~是否考虑消费一下下来起飞呢?");
        cm.dispose();
        }
    }
}
